package com.top10.service;

import com.top10.entity.Goods;
import com.baomidou.mybatisplus.service.IService;
import com.top10.entity.vo.GoodsWithIntCategoryVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author su
 * @since 2018-09-29
 */
public interface IGoodsService extends IService<Goods> {
    List<GoodsWithIntCategoryVo> selectglobalgoods();
    List<String> selectgoodsbycategorytwo(String categoryuuid);
    List<Map<String,Object>> selectgoodsbycategory(String categoryuuid);
    List<Map<String,Object>> selectgoodsbycategoryasc(String categoryuuid);
    List<Map<String,Object>> selectgoodsbyprice(String categoryuuid);
    List<Map<String,Object>> selectgoodsbypriceasc(String categoryuuid);
    List<Map<String,Object>> selectgoodsbyexpress(String categoryuuid);
    List<Map<String,Object>>  selectglobalgoodsbysort();
    List<Map<String,Object>>  selectglobalgoodsbysortasc();
    List<Map<String,Object>>  selectglobalgoodsbyprice();
    List<Map<String,Object>>  selectglobalgoodsbypriceasc();
    List<Map<String,Object>> selectglobalgoodsbyexpress();



    /**
     * 获取商品封面
     * @param uuid
     * @return
     * @throws Exception
     */
    String getShow(String uuid)throws Exception;
    List<Map<String,Object>> selecttoday();
    List<Map<String,Object>> selecthot();
    List<Map<String,Object>> selectnew();
    List<Map<String,Object>> selectsold();

    List<Map<String,Object>> selectGetRecommendGoods(String shopuuid);
    /**
     * 搜索商品的接口
     */
    List<Map<String,Object>>selectAllGood(String keyword);
    List<Map<String,Object>>selectallGoodByPriceOne(String keyword);
    List<Map<String,Object>>selectallGoodByPricessOne(String keyword);
    List<Map<String,Object>>selectallGoodBySalesOne(String keyword);
    List<Map<String,Object>>selectallGoodBySalessOne(String keyword);
}
